package com.linghang.lhonline.VO;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class ReplyVO {

    @JsonProperty("reply_id")
    private Integer replyId;

    @JsonProperty("reply_body")
    private String body;

    @JsonIgnore
    private Integer targetId;

    @JsonProperty("post_time")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm")
    private Date postTime;

    @JsonProperty("user_name")
    private String userName;

    @JsonProperty("user_image_url")
    private String imageUrl;

    @JsonProperty("up")
    private Integer up;

    @JsonProperty("children_list")
    private List<ReplyVO> childrenList = null;
}
